<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--{include file='comm/header.tpl'}-->
    <title>会员反馈列表</title>
    <!--{include file='comm/comm_editor.tpl'}-->
</head>
<body>

<div class="container">

    <div class="comm_content">

            <div class="search-box">
                <div style="position:relative">
                    <form id="search_form" class="form-inline" onsubmit="return false;">
                        <table>
                            <tbody>
                            <tr>
                                <td>
                                    <span>会员号：<input type="text" id="custID" class="form-control input-sm w150"  name="custID" value="" /></span>
                                    <span>反馈日期：<input id="createTime" class="form-control input-sm"  name="createTime" value="<!--{$currentDate|default:''}-->" type='text' style="width:100px;" readonly ></span>
                                    <button type="button" class="btn btn-default btn-sm" onclick="comment.timeClear();">清 空</button>
                                    <span>
                                        是否登录：<select id="is_login" class="form-control input-sm"  name="is_login" style="width:95px;">
                                            <option value="">请选择</option>
                                            <option value="1">是</option>
                                            <option value="0">否</option>
                                        </select>
                                    </span>
                                    <input type="button" value="查询" class="btn btn-primary" onclick="comment.search();" />&nbsp;&nbsp;
                                    <input type="button" value="重置" class="btn btn-warning" onclick="comment.reset();" />
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>

            <table id="flex" style="display:none"></table>

        </div>

</div>


<script type="text/javascript">

    $('#createTime').datepicker();

$("#flex").flexigrid({
    url:"/invokingAjax-backend/customer/custComment.ajax?operFlg=1",
    dataType: "json",
    colModel : [
        {display: "会员号", align: "center", width : 100},
        {display: "创建时间", align: "center", width : 150, name : "comment_id", sortable : true},
        {display: "客户唯一标识", align: "left", width : 200},
        {display: "是否登录", align: "center", width : 80},
        {display: "选项内容", align: "left", width : 350},
        {display: "自定义内容", align: "left", width : 350},
        {display: "反馈者IP", align: "left", width : 200}
    ],
    sortname: "comment_id",
    sortorder: "desc",
    usepager: true,
    rp: 10,
    useRp: true,
    showTableToggleBtn: true,
    autoload: true,
    onSubmit: function() {
        var dt = $("#search_form").serializeArray();
        $("#flex1").flexOptions({params: dt});
        return true;
    }
});

    var comment = {

        //搜索会员
        search: function() {
            var dt = $('#search_form').serializeArray();
            $("#flex").flexOptions({params: dt}).flexReload();
        },

        //重置
        reset: function() {
            $('#custID').val('');
            $('#is_login').val('');
            $('#createTime').val('');
            this.search();
        },

        timeClear: function() {
            $('#createTime').val('');
        },

        load: function() {
            $("#flex").flexReload();
        }

    }



</script>

</body>
</html>